﻿using DDLParser.constant;
using DDLParser.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DDLParser
{
    public class DDLTerminatorLookup : DDLTermLookup
    {
        public DDLTerminatorLookup()
            : base()
        {
            // must sort!!!!
            List<DDLTerm> termList = new List<DDLTerm>();
            termList.Add(new DDLTerm() { Term = DDLTerminator.SPACE, Type = DDLTerminatorType.SPACE });
            termList.Add(new DDLTerm() { Term = DDLTerminator.RETURN, Type = DDLTerminatorType.RETURN });
            termList.Add(new DDLTerm() { Term = DDLTerminator.TAB, Type = DDLTerminatorType.TAB });

            //TermComparator comparator = new TermComparator();
            //termList.Sort(comparator);
            SetTermList(termList);

            Sort();

            IsConvertUpperCase = false;
        }
    }
}
